import { defineStore } from "pinia"; //从pinia中导入，defineStore方法，用于定义一个新的store
import { Planes, type Person } from "~~/types/person.d";

interface disciples {
  disciples: Person[];
}

export const useDisciples = defineStore("disciples", () => {
  let disciples: Person[] = [
    {
      id: 1,
      name: "张三",
      age: 20,
      sex: "男",
      menpai: "血刀门",
      menpaiId: 1,
      master: true,
      Plane: Planes.锻体,
      property: {
        神识: 0,
        体质: 0,
        灵气: 0,
        力量: 0,
        灵活: 0,
      },
      PlaneExp: 0,
      goodList: [],
      skillsList: [],
      gongList: [],
      practices: [],
      quality: {
        ATK: 0,
        DEF: 0,
        Power: 0,
        Health: 0,
        MP: 0,
        SpellDef: 0,
        speed: 0,
        CritATKRate: 0,
        CritATK: 0,
        Jouk: 0,
        Hit: 0,
        search: 0,
      },
    },
  ];
  const addDisciples = (data: Person) => {};
  const removeDisciples = (data: string | number) => {};
  const setDisciples = (data: Person[]) => {};
  const changeMaster = (data: Person) => {};
  return {
    disciples, // 定义一个数组，用来存放disciples数据
  };
});
